package com.mxpio.erp.common.enums;

public interface ProjectTaskEnums {
    /**
     * 任务执行状态
     * table: MB_ERP_PLM_PROJECT_TASK
     * dicCode: ERP_PLM_TASK_EXECUTION_STATUS
     */
    enum ExecutionStatus {
        WAIT_FOR_START("10", "待启动"),
        START("20", "已启动"),
        EXECUTING("30", "执行中"),
        FINISHED("40", "已完成"),
        STOP("50", "已暂停"),
        CLOSED("60", "已关闭");

        ExecutionStatus(String code, String name) {
            this.code = code;
            this.name = name;
        }


        private String code;

        private String name;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    /**
     * 任务日志类型
     * table: MB_ERP_PLM_PROJECT_TASK_EXECUTION_LOG
     * dicCode: ERP_TASK_LOG_TYPE
     */
    enum LogType {
        EXECUTION("Execution", "执行"),
        problem("problem", "问题"),
        CHANGE("change", "变更"),
        COMPLETE("complete", "完工"),
        CLOSE("close", "关闭");

        LogType(String code, String name) {
            this.code = code;
            this.name = name;
        }


        private String code;

        private String name;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
